﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TopologyWizzard
{
[Serializable]

    //! Klasa reprezentująca router
    public class Router
    {
        private int x;
        private int y;
        private int which;
        private String ipAddress;
        private String name;
        private List<Interface> interfaces;
        private List<TestCase> testCaseList;

        //! Konstruktor
        public Router(int xx, int yy, int whichh)
        {
            x = xx;
            y = yy;
            which = whichh;
            interfaces = new List<Interface>();
            testCaseList = new List<TestCase>();
        }

        //! Nazwa
        public String Name
        {
            get
            {
                return name;
            }
            set
            {
                name = value;
            }
        }

        //! Adres IP
        public String IpAddress
        {
            get
            {
                return ipAddress;
            }
            set
            {
                ipAddress = value;
            }
        }

        //! Pozycja X na panelu topologii
        public int X
        {
            get
            {
                return x;
            }
            set
            {
                x = value;
            }
        }

        //! Pozycja Y na panelu topologii
        public int Y
        {
            get
            {
                return y;
            }
            set
            {
                y = value;
            }
        }

        //! Typ routera
        public int Which
        {
            get
            {
                return which;
            }
            set
            {
                which = value;
            }
        }

        //! Interfejsy
        public List<Interface> Interfaces
        {
            get
            {
                return interfaces;
            }
            set
            {
                interfaces = value;
            }
        }

        //! Testy
        public List<TestCase> TestCaseList
        {
            get
            {
                return testCaseList;
            }
            set
            {
                testCaseList = value;
            }
        }
    }

}
